Global Variables
Global variables are defined globally in the context of the TPT installation, that is independent of the TPT project file. The purpose of global variables is to specify settings for a TPT installation such as installation path, project path, and so forth that can be used in all TPT projects you open with this TPT installation. Global variables are stored in the global tpt.config
file which is stored in the folder <AppData>/Local/TPT
.
To create a global variable,
- Go to Options | Preferences | General Settings | Variables.
- Click Create a new variable , enter the property name and click OK.
- Click in the Value field and enter an expression.
You can create as many global variables as you like. To delete a variable, select it and click the Delete.
Global variables can be used in many places in TPT using the following syntax: ${<global_variable_name>}
.
${<global_variable_name>}
is case-sensitive. Make sure to write the name of the variable correctly. Show global variables in report
Global variables are by default not displayed in the report. To add global variables to the report, select the check box Show in Report.